#include <allegro.h>
#include <iostream>
#include "game.hpp"
#include "main.hpp"



cGame * game;


int main()
{
game=new cGame(1024,600);

	while (!key[KEY_ESC])
        {
            game->draw(game->bufor);

            if (key[KEY_A])
                   if (game->show->x > 0)
                   game->show->x-=10;

            if (key[KEY_D])
                   game->show->x+=10;

            if (key[KEY_W])
                   if (game->show->y > 0)
                   game->show->y-=10;

            if (key[KEY_S])
                   game->show->y+=10;

            rest(30);
        }

	return 0;
}
END_OF_MAIN()
